package com.example.demo2.service;

import com.example.demo2.pojo.PageBean;
import com.example.demo2.pojo.data.AnnouncementDO;
import com.example.demo2.utils.Result;
import com.example.demo2.pojo.vo.AnnouncementVO;

import java.util.List;

/** 
 * <br/>
 * Created by weidong on 2020/05/06
 */
public interface AnnouncementService {

	Result add(AnnouncementVO announcementVO) throws Exception;

	Result updateById(AnnouncementVO announcementVO) throws Exception;
	
	Result findById(Integer id) throws Exception;

	Result list(AnnouncementVO announcementVO) throws Exception;

    PageBean listPage(AnnouncementVO announcementVO) throws Exception;
	
	Result count(AnnouncementVO announcementVO) throws Exception;
	
	Result deleteById(Integer id) throws Exception;
	AnnouncementVO find(Integer id)throws Exception;
}